<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class User_model extends CI_Model {
	
	function __construct()
    {
        parent::__construct();
    }
	
	function get_login($username){
		return $this->db->get_where('user',array('username'=>$username));
	}
	
	function signup($email,$password){
		
		$this->signup 	= time();
		$this->username = $email;
		$this->password = hash('sha256',$password);
		
		$this->db->insert('profile',$this);
	}
	
}